﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

/// <summary>
/// Summary description for FormContract
/// </summary>
public class FormContract
{
    public const string USER_REF = "new_pant_id";
    public const string CONSENT_STATUS = "consent_status";

    const string QUESTION = "question_";
    public static string GetQuestionName(int question_id)
    {
        return QUESTION + question_id;
    }

    public static int GetQuestionID(string question_name)
    {
        return Convert.ToInt32(question_name.Substring(QUESTION.Length));
    }

    public static bool IsQuestion(string input)
    {
        return input.StartsWith(QUESTION);
    }
}
